package cn.dg.manager.delivery.action;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import cn.dg.manager.base.BaseController;
import cn.dg.manager.base.entity.HttpResult;
import cn.dg.manager.base.util.PageData;

public class DeliveryAction extends BaseController {

	@RequestMapping(value="/deliveryindex")
	public String index() {
		return "wareHouse/main";
	}
	
	@RequestMapping(value="/delivery/add")
	public ModelAndView add() {
		ModelAndView mv = this.getModelAndView();
		return mv;
	}
	
	@RequestMapping(value="/delivery/update")
	public ModelAndView update() {
		ModelAndView mv = this.getModelAndView();
		return null;
	}
	
	@RequestMapping(value="/delivery/saveOrUpdate")
	@ResponseBody
	public  Object saveOrUpdate () {
		return HttpResult.createSuccessResult("", "0");
	}
	
	@RequestMapping(value="/delivery/del")
	@ResponseBody
	public  Object delete () {
		PageData pd = this.getPageData();
		
		return HttpResult.createSuccessResult("", "0");
	}
}
